/*
 * Created on 2006-2-24
 *
 */
package com.kuanrf.common;

/**
 * @author p52391
 * @version 
 */
public class LogicException extends RuntimeException
{
    /**
     * 意义，目的和功能，以及被用到的地方<br>
     */
    private static final long serialVersionUID = 1L;
    
    private String errorNo = "";
    
    private String errorContent = "";
    
    /**
     * Description: 构建器 <br>
     * [参数列表，说明每个参数用途]
     *
     * @param errorNo
     * @param errorContent return_type
     */
    public LogicException(String errorNo, String errorContent)
    {
        this.errorNo = errorNo;
        this.errorContent = errorContent;
    }
    
    public String getErrorContent()
    {
        return errorContent;
    }
    
    public void setErrorContent(String errorContent)
    {
        this.errorContent = errorContent;
    }
    
    public String getErrorNo()
    {
        return errorNo;
    }
    
    public void setErrorNo(String errorNo)
    {
        this.errorNo = errorNo;
    }
    
    /**
     * @see java.lang.Object#toString()
     */
    public String toString()
    {
        return "ErrorNumber is " + errorNo + ':' + errorContent;
    }
}
